home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / D-G / FORTRAN Goodies.sit / FORTRAN Goodies / FORTRAN Speaks / Speak.f < prev    next >
MacBinary  |  1990-08-01  |  2.5 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Freeze Frozen Compressed File (archive/freeze) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert MathVISION Formula (other/mathVISIONFormula) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Wed Aug 1 11:28:29 1990, modified Wed Aug 1 11:28:29 1990, creator 'MPS ', type ASCII, 2011 bytes "Speak.f" , at 0x85b 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 53 70 65 61 6b 2e | 66 00 00 00 00 00 00 00 |..Speak.|f.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 07 db 00 | 00 01 7e a2 dc a5 9d a2 |........|..~.....|
|00000060| dc a5 9d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 bc 71 00 00 |........|.....q..|
|00000080| 43 0d 43 09 4d 61 63 49 | 6e 54 61 6c 6b 20 69 6e |C.C.MacI|nTalk in|
|00000090| 20 46 4f 52 54 52 41 4e | 20 64 65 6d 6f 0d 43 0d | FORTRAN| demo.C.|
|000000a0| 43 09 41 75 74 68 6f 72 | 3a 20 43 72 61 69 67 20 |C.Author|: Craig |
|000000b0| 56 61 75 67 68 61 6e 0d | 43 09 0d 43 09 54 68 69 |Vaughan.|C..C.Thi|
|000000c0| 73 20 70 72 6f 67 72 61 | 6d 20 69 6c 6c 75 73 74 |s progra|m illust|
|000000d0| 72 61 74 65 73 20 68 6f | 77 20 74 6f 20 75 73 65 |rates ho|w to use|
|000000e0| 20 74 68 65 20 4d 61 63 | 49 6e 54 61 6c 6b 20 64 | the Mac|InTalk d|
|000000f0| 72 69 76 65 72 0d 43 09 | 66 72 6f 6d 20 46 4f 52 |river.C.|from FOR|
|00000100| 54 52 41 4e 2e 20 4e 6f | 74 65 20 74 68 61 74 20 |TRAN. No|te that |
|00000110| 79 6f 75 20 6d 75 73 74 | 20 68 61 76 65 20 74 68 |you must| have th|
|00000120| 65 20 4d 61 63 49 6e 54 | 61 6c 6b 20 64 72 69 76 |e MacInT|alk driv|
|00000130| 65 72 0d 43 09 65 69 74 | 68 65 72 20 69 6e 20 74 |er.C.eit|her in t|
|00000140| 68 65 20 73 61 6d 65 20 | 66 6f 6c 64 65 72 20 61 |he same |folder a|
|00000150| 73 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |s the ap|plicatio|
|00000160| 6e 20 6f 72 20 69 6e 20 | 79 6f 75 72 0d 43 09 73 |n or in |your.C.s|
|00000170| 79 73 74 65 6d 20 66 6f | 6c 64 65 72 20 66 6f 72 |ystem fo|lder for|
|00000180| 20 74 68 69 73 20 61 70 | 70 6c 69 63 61 74 69 6f | this ap|plicatio|
|00000190| 6e 20 74 6f 20 77 6f 72 | 6b 2e 0d 43 0d 43 09 46 |n to wor|k..C.C.F|
|000001a0| 6f 72 20 6c 69 63 65 6e | 73 69 6e 67 20 72 65 61 |or licen|sing rea|
|000001b0| 73 6f 6e 73 2c 20 77 65 | 20 64 6f 20 4e 4f 54 20 |sons, we| do NOT |
|000001c0| 73 75 70 70 6c 79 20 74 | 68 65 20 4d 61 63 49 6e |supply t|he MacIn|
|000001d0| 54 61 6c 6b 20 64 72 69 | 76 65 72 2e 0d 43 09 54 |Talk dri|ver..C.T|
|000001e0| 6f 20 6f 62 74 61 69 6e | 20 61 20 63 6f 70 79 20 |o obtain| a copy |
|000001f0| 63 68 65 63 6b 20 79 6f | 75 72 20 6c 6f 63 61 6c |check yo|ur local|
|00000200| 20 75 73 65 72 20 67 72 | 6f 75 70 2c 20 62 75 6c | user gr|oup, bul|
|00000210| 6c 65 74 69 6e 20 62 6f | 61 72 64 20 6f 72 0d 43 |letin bo|ard or.C|
|00000220| 09 6f 6e 6c 69 6e 65 20 | 73 65 72 76 69 63 65 20 |.online |service |
|00000230| 28 43 6f 6d 70 75 53 65 | 72 76 65 2c 20 41 6d 65 |(CompuSe|rve, Ame|
|00000240| 72 69 63 61 20 4f 6e 6c | 69 6e 65 2c 20 47 45 4e |rica Onl|ine, GEN|
|00000250| 49 45 2c 20 65 74 63 2e | 29 2e 0d 43 0d 0d 43 20 |IE, etc.|)..C..C |
|00000260| 4c 6f 61 64 20 74 68 65 | 20 54 6f 6f 6c 62 6f 78 |Load the| Toolbox|
|00000270| 20 69 6e 6c 69 6e 65 73 | 0d 21 21 4d 50 20 69 6e | inlines|.!!MP in|
|00000280| 6c 69 6e 65 73 2e 66 0d | 09 70 72 6f 67 72 61 6d |lines.f.|.program|
|00000290| 20 44 65 6d 6f 53 70 65 | 61 6b 0d 09 69 6d 70 6c | DemoSpe|ak..impl|
|000002a0| 69 63 69 74 20 6e 6f 6e | 65 0d 09 0d 43 20 47 65 |icit non|e...C Ge|
|000002b0| 74 20 74 68 65 20 54 79 | 70 65 73 20 64 65 66 69 |t the Ty|pes defi|
|000002c0| 6e 69 74 69 6f 6e 73 0d | 09 69 6e 63 6c 75 64 65 |nitions.|.include|
|000002d0| 20 27 54 79 70 65 73 2e | 66 27 0d 09 0d 43 20 47 | 'Types.|f'...C G|
|000002e0| 65 74 20 74 68 65 20 53 | 70 65 65 63 68 49 6e 74 |et the S|peechInt|
|000002f0| 66 20 28 4d 61 63 49 6e | 54 61 6c 6b 29 20 64 65 |f (MacIn|Talk) de|
|00000300| 66 69 6e 69 74 69 6f 6e | 73 0d 09 69 6e 63 6c 75 |finition|s..inclu|
|00000310| 64 65 20 27 53 70 65 65 | 63 68 49 6e 74 66 2e 66 |de 'Spee|chIntf.f|
|00000320| 27 0d 09 0d 43 20 44 65 | 63 6c 61 72 65 20 6c 6f |'...C De|clare lo|
|00000330| 63 61 6c 20 76 61 72 69 | 61 62 6c 65 73 0d 09 49 |cal vari|ables..I|
|00000340| 4e 54 45 47 45 52 2a 32 | 20 53 70 63 68 45 72 72 |NTEGER*2| SpchErr|
|00000350| 20 2c 20 74 68 65 4d 6f | 64 65 2c 20 74 68 65 50 | , theMo|de, theP|
|00000360| 69 74 63 68 2c 20 69 0d | 09 53 54 52 49 4e 47 2a |itch, i.|.STRING*|
|00000370| 32 35 35 20 54 6f 53 61 | 79 0d 09 0d 43 20 44 65 |255 ToSa|y...C De|
|00000380| 63 6c 61 72 65 20 68 61 | 6e 64 6c 65 73 20 66 6f |clare ha|ndles fo|
|00000390| 72 20 4d 61 63 49 6e 54 | 61 6c 6b 0d 09 52 45 43 |r MacInT|alk..REC|
|000003a0| 4f 52 44 20 2f 53 70 65 | 65 63 68 48 61 6e 64 6c |ORD /Spe|echHandl|
|000003b0| 65 2f 20 74 68 65 53 70 | 65 65 63 68 0d 09 52 45 |e/ theSp|eech..RE|
|000003c0| 43 4f 52 44 20 2f 48 61 | 6e 64 6c 65 2f 20 6f 75 |CORD /Ha|ndle/ ou|
|000003d0| 74 70 75 74 0d 0d 43 20 | 4f 70 65 6e 20 74 68 65 |tput..C |Open the|
|000003e0| 20 73 70 65 65 63 68 20 | 64 72 69 76 65 72 20 77 | speech |driver w|
|000003f0| 69 74 68 20 6e 6f 20 65 | 78 63 65 70 74 69 6f 6e |ith no e|xception|
|00000400| 73 20 66 69 6c 65 0d 09 | 53 70 63 68 45 72 72 20 |s file..|SpchErr |
|00000410| 3d 20 53 70 65 65 63 68 | 4f 6e 28 25 72 65 66 28 |= Speech|On(%ref(|
|00000420| 6e 6f 45 78 63 70 73 46 | 69 6c 65 73 29 2c 20 25 |noExcpsF|iles), %|
|00000430| 72 65 66 28 74 68 65 53 | 70 65 65 63 68 29 29 0d |ref(theS|peech)).|
|00000440| 09 49 46 20 28 53 70 63 | 68 45 72 72 20 3c 3e 20 |.IF (Spc|hErr <> |
|00000450| 30 29 20 54 48 45 4e 09 | 09 21 20 54 68 65 72 65 |0) THEN.|.! There|
|00000460| 20 77 61 73 20 61 20 70 | 72 6f 62 6c 65 6d 2e 20 | was a p|roblem. |
|00000470| 4c 65 74 20 74 68 65 20 | 75 73 65 72 20 6b 6e 6f |Let the |user kno|
|00000480| 77 0d 09 09 77 72 69 74 | 65 20 28 2a 2c 2a 29 20 |w...writ|e (*,*) |
|00000490| 27 55 6e 61 62 6c 65 20 | 74 6f 20 6f 70 65 6e 20 |'Unable |to open |
|000004a0| 53 70 65 65 63 68 20 44 | 72 69 76 65 72 2e 20 4d |Speech D|river. M|
|000004b0| 61 63 20 4f 53 20 45 72 | 72 6f 72 3a 27 2c 53 70 |ac OS Er|ror:',Sp|
|000004c0| 63 68 45 72 72 0d 09 09 | 53 54 4f 50 09 09 09 09 |chErr...|STOP....|
|000004d0| 09 21 20 47 65 74 20 6f | 75 74 61 20 68 65 72 65 |.! Get o|uta here|
|000004e0| 21 0d 09 20 45 4e 44 20 | 49 46 0d 0d 43 20 53 65 |!.. END |IF..C Se|
|000004f0| 74 20 75 70 20 74 68 65 | 20 6d 6f 64 65 20 61 6e |t up the| mode an|
|00000500| 64 20 74 68 65 20 70 69 | 74 63 68 0d 09 74 68 65 |d the pi|tch..the|
|00000510| 4d 6f 64 65 20 3d 20 4e | 61 74 75 72 61 6c 09 09 |Mode = N|atural..|
|00000520| 09 21 20 4e 61 74 75 72 | 61 6c 20 73 70 65 65 63 |.! Natur|al speec|
|00000530| 68 20 6d 6f 64 65 0d 09 | 74 68 65 50 69 74 63 68 |h mode..|thePitch|
|00000540| 20 3d 20 30 09 09 09 09 | 21 20 4e 6f 72 6d 61 6c | = 0....|! Normal|
|00000550| 20 70 69 74 63 68 0d 09 | 43 41 4c 4c 20 53 70 65 | pitch..|CALL Spe|
|00000560| 65 63 68 50 69 74 63 68 | 28 74 68 65 53 70 65 65 |echPitch|(theSpee|
|00000570| 63 68 2c 20 74 68 65 50 | 69 74 63 68 2c 20 74 68 |ch, theP|itch, th|
|00000580| 65 4d 6f 64 65 29 0d 0d | 43 20 47 65 74 20 61 20 |eMode)..|C Get a |
|00000590| 68 61 6e 64 6c 65 20 66 | 6f 72 20 74 72 61 6e 73 |handle f|or trans|
|000005a0| 6c 61 74 65 64 20 73 70 | 65 65 63 68 2e 20 49 6e |lated sp|eech. In|
|000005b0| 69 74 69 61 6c 6c 79 20 | 30 20 62 79 74 65 73 2e |itially |0 bytes.|
|000005c0| 20 49 74 20 77 69 6c 6c | 20 67 72 6f 77 20 61 73 | It will| grow as|
|000005d0| 20 72 65 71 75 69 72 65 | 64 0d 09 6f 75 74 70 75 | require|d..outpu|
|000005e0| 74 20 3d 20 4e 65 77 48 | 61 6e 64 6c 65 28 30 29 |t = NewH|andle(0)|
|000005f0| 0d 09 0d 43 20 53 65 74 | 20 74 68 65 20 69 6e 70 |...C Set| the inp|
|00000600| 75 74 20 73 74 72 69 6e | 67 20 74 6f 20 73 6f 6d |ut strin|g to som|
|00000610| 65 74 68 69 6e 67 20 6f | 74 68 65 72 20 74 68 61 |ething o|ther tha|
|00000620| 6e 20 71 75 69 74 0d 09 | 74 6f 53 61 79 20 3d 20 |n quit..|toSay = |
|00000630| 27 20 27 0d 0d 43 20 4b | 65 65 70 20 61 73 6b 69 |' '..C K|eep aski|
|00000640| 6e 67 20 66 6f 72 20 69 | 6e 70 75 74 20 75 6e 74 |ng for i|nput unt|
|00000650| 69 6c 20 74 68 65 20 75 | 73 65 72 20 65 6e 74 65 |il the u|ser ente|
|00000660| 72 73 20 71 75 69 74 0d | 09 44 4f 20 57 48 49 4c |rs quit.|.DO WHIL|
|00000670| 45 20 28 74 6f 53 61 79 | 3c 3e 27 71 75 69 74 27 |E (toSay|<>'quit'|
|00000680| 2e 61 6e 64 2e 74 6f 53 | 61 79 3c 3e 27 51 55 49 |.and.toS|ay<>'QUI|
|00000690| 54 27 29 0d 09 09 57 52 | 49 54 45 20 28 2a 2c 2a |T')...WR|ITE (*,*|
|000006a0| 29 20 27 57 68 61 74 20 | 73 68 6f 75 6c 64 20 49 |) 'What |should I|
|000006b0| 20 73 61 79 3f 20 28 45 | 6e 74 65 72 20 d2 71 75 | say? (E|nter .qu|
|000006c0| 69 74 d3 20 74 6f 20 65 | 78 69 74 29 27 0d 09 09 |it. to e|xit)'...|
|000006d0| 52 45 41 44 20 28 2a 2c | 2a 29 20 74 6f 53 61 79 |READ (*,|*) toSay|
|000006e0| 0d 09 09 49 46 20 28 74 | 6f 53 61 79 3c 3e 27 71 |...IF (t|oSay<>'q|
|000006f0| 75 69 74 27 2e 61 6e 64 | 2e 74 6f 53 61 79 3c 3e |uit'.and|.toSay<>|
|00000700| 27 51 55 49 54 27 29 20 | 54 48 45 4e 20 21 20 41 |'QUIT') |THEN ! A|
|00000710| 72 65 20 77 65 20 71 75 | 69 74 74 69 6e 67 3f 0d |re we qu|itting?.|
|00000720| 43 20 49 66 20 6e 6f 74 | 20 74 68 65 6e 20 73 61 |C If not| then sa|
|00000730| 79 20 69 74 21 0d 43 20 | 54 72 61 6e 73 6c 61 74 |y it!.C |Translat|
|00000740| 65 20 74 6f 20 70 68 6f | 6e 65 6d 65 73 0d 09 09 |e to pho|nemes...|
|00000750| 09 53 70 63 68 45 72 72 | 20 3d 20 52 65 61 64 65 |.SpchErr| = Reade|
|00000760| 72 28 74 68 65 53 70 65 | 65 63 68 2c 20 25 6c 6f |r(theSpe|ech, %lo|
|00000770| 63 28 74 6f 53 61 79 29 | 2b 31 2c 6c 65 6e 28 74 |c(toSay)|+1,len(t|
|00000780| 6f 53 61 79 29 2c 20 6f | 75 74 70 75 74 29 0d 43 |oSay), o|utput).C|
|00000790| 20 53 70 65 61 6b 20 74 | 68 65 20 74 72 61 6e 73 | Speak t|he trans|
|000007a0| 6c 61 74 65 64 20 74 65 | 78 74 0d 09 09 09 53 70 |lated te|xt....Sp|
|000007b0| 63 68 45 72 72 20 3d 20 | 4d 61 63 69 6e 54 61 6c |chErr = |MacinTal|
|000007c0| 6b 28 74 68 65 53 70 65 | 65 63 68 2c 20 6f 75 74 |k(theSpe|ech, out|
|000007d0| 70 75 74 29 0d 09 09 45 | 4e 44 20 49 46 0d 09 45 |put)...E|ND IF..E|
|000007e0| 4e 44 20 44 4f 0d 09 0d | 43 20 43 6c 6f 73 65 20 |ND DO...|C Close |
|000007f0| 74 68 65 20 73 70 65 65 | 63 68 20 64 72 69 76 65 |the spee|ch drive|
|00000800| 72 0d 09 43 41 4c 4c 20 | 53 70 65 65 63 68 4f 66 |r..CALL |SpeechOf|
|00000810| 66 28 74 68 65 53 70 65 | 65 63 68 29 0d 0d 43 20 |f(theSpe|ech)..C |
|00000820| 52 65 6c 65 61 73 65 20 | 74 68 65 20 6f 75 74 70 |Release |the outp|
|00000830| 75 74 20 68 61 6e 64 6c | 65 0d 09 43 41 4c 4c 20 |ut handl|e..CALL |
|00000840| 44 69 73 70 6f 73 48 61 | 6e 64 6c 65 28 6f 75 74 |DisposHa|ndle(out|
|00000850| 70 75 74 29 0d 0d 09 45 | 4e 44 0d 00 00 00 00 00 |put)...E|ND......|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000890| 72 72 53 74 72 20 3a 3d | 20 27 49 2f 4f 20 41 62 |rrStr :=| 'I/O Ab|
|000008a0| 6f 72 74 65 64 20 62 79 | 20 4b 69 6c 6c 49 4f 27 |orted by| KillIO'|
|000008b0| 07 53 70 65 61 6b 2e 66 | 02 00 00 00 50 61 72 74 |.Speak.f|....Part|
|000008c0| 53 49 54 78 00 00 00 00 | 00 00 00 00 00 01 64 2e |SITx....|......d.|
|000008d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 a9 80 18 c9 00 00 | 00 00 00 00 01 7e 53 74 |........|.....~St|
|00000900| 72 20 3a 3d 20 27 44 69 | 72 65 63 74 6f 72 79 20 |r := 'Di|rectory |
|00000910| 66 75 6c 6c 27 3b 0d 09 | 09 64 73 6b 46 75 6c 45 |full';..|.dskFulE|
|00000920| 72 72 20 3a 20 0d 09 09 | 09 45 72 72 53 74 72 20 |rr : ...|.ErrStr |
|00000930| 3a 3d 20 27 44 69 73 6b | 20 66 75 6c 6c 27 3b 0d |:= 'Disk| full';.|
|00000940| 09 09 6e 73 76 45 72 72 | 20 3a 20 0d 09 09 09 45 |..nsvErr| : ....E|
|00000950| 72 72 53 74 72 20 3a 3d | 20 27 4e 6f 20 73 75 63 |rrStr :=| 'No suc|
|00000960| 68 20 76 6f 6c 75 6d 65 | 27 3b 0d 09 09 69 6f 45 |h volume|';...ioE|
|00000970| 72 72 20 3a 20 0d 09 09 | 09 45 72 72 53 74 72 20 |rr : ...|.ErrStr |
|00000980| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 12 00 01 |...H..Mo|naco....|
|00000990| 39 3e 00 0a 00 00 00 00 | 00 00 00 00 00 00 00 12 |9>......|........|
|000009a0| 00 01 38 7e 00 0a 00 06 | 00 04 00 2d 00 01 00 d8 |..8~....|...-....|
|000009b0| 01 ae 00 2d 00 01 00 d8 | 01 ae a2 dc 5f 4d 00 00 |...-....|...._M..|
|000009c0| 07 db 00 00 07 db 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|000009d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 24 22 1c |...L...L|...2.$".|
|000009e0| 06 40 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.@.....2|..MPSR..|
|000009f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 25 c7 d8 00 00 |........|...%....|
+--------+-------------------------+-------------------------+--------+--------+